package com.acoreful.acf2admin.config;

import java.util.Properties;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
/*@Scope("prototype")*/
public class SystemConfig {
	@Value(value="#{setting}")
	Properties properties;
	@Value(value="${app}")
	private String name;
	
	private String msg;
	public static String str;
	
	public SystemConfig() {
		System.out.println(properties);
		System.out.println("Construct exec");
	}
	@PostConstruct
	private void init() throws InterruptedException{
		Thread.sleep(500);
		System.out.println("@PostConstruct init ");
		msg=properties.getProperty("project_info");
		str=properties.getProperty("project_info");
	}

	public Properties getProperties() {
		return properties;
	}

	public void setProperties(Properties properties) {
		this.properties = properties;
	}

	public String getMsg() {
		return msg;
	}
}
